// 在此处修改ElementPlus各个组件的默认参数

import { ElDialog, ElPagination, ElTableColumn } from 'element-plus';

//ElDialog
Object.assign(ElDialog.props, {
  alignCenter: {
    type: Boolean,
    default: true,
  },
  appendTo: {
    type: String,
    default: 'body',
  },
  destroyOnClose: {
    type: Boolean,
    default: true,
  },
  closeOnClickModal: {
    type: Boolean,
    default: true,
  },
});

Object.assign(ElPagination.props, {
  pageSizes: {
    type: Array,
    default: () => [10, 15, 30, 50, 100, 150, 200],
  },
  layout: {
    type: String,
    default: 'total,sizes,prev,pager,next',
  },
  background: {
    type: Boolean,
    default: true,
  },
  small: {
    type: Boolean,
    default: true,
  },
});

Object.assign(ElTableColumn.props, {
  align: {
    type: String,
    default: () => 'center',
  },
});
